﻿using ZenSystemService.Api.Entities;

namespace ZenSystemService.Api.DTOs
{
    public class InstitutionForeLoginResponse
    {
        /// <summary>
        /// 用户是否存在
        /// </summary>
        public bool InstitutionIsExist { get; set; }

        /// <summary>
        /// 机构信息
        /// </summary>
        public InstitutionInfoResponse InstitutionInfo { get; set; }

        /// <summary>
        /// 用户信息
        /// </summary>
        public UserInfoResponse UserInfo { get; set; }


        /// <summary>
        /// 用户登录后token
        /// </summary>
        public string UserToken { get; set; }
    }


    /// <summary>
    /// 机构返回信息
    /// </summary>
    public class InstitutionInfoResponse
    {
        public int InstitutionId { get; set; }

        /// <summary>
        /// 机构类型 1企业 2=个人
        /// </summary>
        public string? InstitutionType { get; set; }


        /// <summary>
        /// 机构名
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 组织机构代码
        /// </summary>
        public string? OrganizationCode { get; set; }


        /// <summary>
        /// 机构地址
        /// </summary>
        public string? Address { get; set; }


        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Email { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? PhoneNo { get; set; }
        /// <summary>
        /// 企业法人/联系人
        /// </summary>
        public string? Representative { get; set; }
        /// <summary>
        /// 法人电话/联系人电话
        /// </summary>
        public string? RepresentativePhoneNo { get; set; }
        /// <summary>
        /// 联系人职位
        /// </summary>
        public string? RepresentativeTitle { get; set; }
    }
}
